package com.clubs.coding.Controller;

import com.clubs.coding.Service.AthRecordService;
import com.clubs.coding.common.ApiRestResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@ResponseBody
@Controller

public class AthRecordController {
    @Autowired
    AthRecordService athRecordService;
    @GetMapping("/v2/rest")
    public ApiRestResponse rest(String openid){
        Integer rest = athRecordService.rest(openid);
        return ApiRestResponse.success(rest);
    }
}
